package com.chouxiaozi.staticproxy;

import com.chouxiaozi.IPerson;

public class FatherProxy implements IPerson {

    private IPerson iPerson;

    public FatherProxy(IPerson iPerson){
        this.iPerson = iPerson;
    }

    @Override
    public void findLove() {
        before();
        this.iPerson.findLove();
        after();
    }

    private void before(){
        System.out.println("我是他爸爸，帮儿子物色对象");
    }
    private void after(){
        System.out.println("恭喜在一起哦");
    }
}
